﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AzureDiagMon.Common;
using Ninject.Modules;

namespace AzureDiagMon.Model
{
    public class Module : NinjectModule
    {
        #region Overrides of NinjectModule

        public override void Load()
        {
            Bind<DataContextProvider>().ToSelf().InSingletonScope();
            var provider = IoC.Get<DataContextProvider>();
            Bind<IModelsContainer>().ToProvider(provider);
        }

        #endregion
    }
}
